package Java.BlackHorse.a06ThreadTest.Test3;

import java.util.ArrayList;
import java.util.Collections;

public class ThreadDemo {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        Collections.addAll(list,10,10,10,20,20,50,100,200);

        MyThread t1 =new MyThread("抽奖箱一",list);
        MyThread t2 =new MyThread("抽奖箱二",list);

        t1.start();
        t2.start();
    }
}
